package com.hdoit.kylin.logical.groupActivity.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.kylin.logical.groupActivity.dao.IScheduleDao;
import com.hdoit.kylin.logical.groupActivity.model.Schedule;
import com.hdoit.kylin.logical.groupActivity.service.IScheduleService;
import com.hdoit.kylin.logical.viewmodel.groupActivity.ScheduleSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      lufu
 * @email       
 * @createtime  2017年08月03日 09:53:27
 * @comment
 */
@Component
public class ScheduleServiceImpl extends SuperService<Schedule> implements IScheduleService{
	
	private IScheduleDao scheduleDao;

	public IScheduleDao getScheduleDao() {
		return scheduleDao;
	}

	@Resource
	public void setScheduleDao(IScheduleDao scheduleDao) {
		this.scheduleDao = scheduleDao;
	}

	@Override
	public List<Schedule> queryList(ScheduleSearch scheduleSearch,PagerModel pagerModel) {
		return scheduleDao.queryList(scheduleSearch, pagerModel);
	}

	@Override
	public List<Schedule> queryList(ScheduleSearch scheduleSearch) {
		return scheduleDao.queryList(scheduleSearch);
	}

	@Override
	public int queryCount(ScheduleSearch scheduleSearch) {
		return scheduleDao.queryCount(scheduleSearch);
	}

}